package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜品口味实体类
 */
@Data
@ApiModel(value = "菜品口味")
public class DishFlavor implements Serializable {

    private static final long serialVersionUID = 1L;

    //菜品口味Id
    @ApiModelProperty(value = "菜品口味Id")
    private Long id;


    //菜品id
    @ApiModelProperty(value = "菜品id")
    private Long dishId;


    //口味名称
    @ApiModelProperty(value = "口味名称")
    private String name;


    //口味数据list
    @ApiModelProperty(value = "口味数据")
    private String value;


    //创建时间
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //更新时间
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //创建人
    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    //修改人
    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;


    //是否删除
    @ApiModelProperty(value = "是否删除")
    private Integer isDeleted;

}
